package com.bto.solar.work.dto.order;

import com.bto.solar.work.dto.CheckDeviceValidRes;
import com.bto.solar.work.dto.FormBtnsDto;
import com.bto.solar.work.entity.Device;
import com.bto.solar.work.entity.OrderState;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * @author 王小波
 * @description:
 * @date 2023/8/19 14:14
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
public class DeviceDto {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("订单id")
    private String orderId;

    @ApiModelProperty("设备类型")
    private String deviceType;

    @ApiModelProperty("设计设备信息")
    private List<DesignDto.DesignDevice> designDevice;

    @ApiModelProperty("设备信息")
    private List<Device> devices;

    @ApiModelProperty("设备校验信息")
    private CheckDeviceValidRes checkDeviceValidRes;


    @ApiModelProperty("经度")
    private String lng;
    @ApiModelProperty("维度")
    private String lat;

    @ApiModelProperty("任务状态")
    private OrderState orderState;

    @ApiModelProperty("按钮信息")
    private FormBtnsDto btns;

//    @Data
//    @NoArgsConstructor
//    @Accessors(chain = true)
//    public static class DeviceNumberDto {
//        @ApiModelProperty("设备编号")
//        private String deviceCode;
//
//        @ApiModelProperty("录入时间")
//        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
//        private Timestamp inputDataTime;
//
//    }
}
